package com.byq.mcpanus.model;

import jakarta.persistence.Entity;
import jakarta.persistence.Id;

@Entity
public class DomainServer {
    @Id
    private String id;
    private String domainId; // 对应McpDomain.id
    private String serverId; // 对应McpServer.id

    public DomainServer() {}

    public DomainServer(String domainId, String serverId) {
        this.domainId = domainId;
        this.serverId = serverId;
        this.id = domainId + "_" + serverId;
    }

    public String getId() { return id; }
    public void setId(String id) { this.id = id; }
    public String getDomainId() { return domainId; }
    public void setDomainId(String domainId) { this.domainId = domainId; }
    public String getServerId() { return serverId; }
    public void setServerId(String serverId) { this.serverId = serverId; }
} 